package cn.alibaba.service;

import cn.alibaba.pojo.Product;
import cn.alibaba.productDao.ProductMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public Product findByPid(Integer pid) {
        return productMapper.selectByPrimaryKey(pid);
    }
}
